<template>
  <div class="upload-excel">
    <div class="upload-box">
      <!-- 点击上传 -->
      <click-upload
        :beforeUpload="props.beforeUpload"
        :onSuccess="props.onSuccess"
      />
      <!-- 拖拽上传 -->
      <drop-upload
        :beforeUpload="props.beforeUpload"
        :onSuccess="props.onSuccess"
      />
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
import ClickUpload from './click-upload'
import DropUpload from './drop-upload'
const props = defineProps({
  beforeUpload: {
    type: Function
  },
  onSuccess: {
    type: Function
  }
})
</script>

<style lang="scss" scoped>
.upload-excel {
  .upload-box {
    display: flex;
    justify-content: center;
    height: 260px;
  }
}
</style>
